package com.wu.flandre.entity.table;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wu
 * @since 2019-12-14
 */
@TableName("ApiCallCensus")
public class ApiCallCensus extends Model<ApiCallCensus> {

    private static final long serialVersionUID=1L;

    /**
     * api调用统计列的主键ID
     */
    @TableId("ApiCallId")
    private String ApiCallId;

    /**
     * api方法名
     */
    @TableField("ApiMethod")
    private String ApiMethod;

    /**
     * api名字
     */
    @TableField("ApiName")
    private String ApiName;

    /**
     * api调用URL
     */
    @TableField("ApiPath")
    private String ApiPath;

    /**
     * api开始调用时间
     */
    @TableField("ApiCallStart")
    private LocalDateTime ApiCallStart;

    /**
     * api结束调用的时间
     */
    @TableField("ApiCallEnd")
    private LocalDateTime ApiCallEnd;

    /**
     * api调用消耗时长
     */
    @TableField("ApiUseTime")
    private Integer ApiUseTime;


    public String getApiCallId() {
        return ApiCallId;
    }

    public void setApiCallId(String ApiCallId) {
        this.ApiCallId = ApiCallId;
    }

    public String getApiMethod() {
        return ApiMethod;
    }

    public void setApiMethod(String ApiMethod) {
        this.ApiMethod = ApiMethod;
    }

    public String getApiName() {
        return ApiName;
    }

    public void setApiName(String ApiName) {
        this.ApiName = ApiName;
    }

    public String getApiPath() {
        return ApiPath;
    }

    public void setApiPath(String ApiPath) {
        this.ApiPath = ApiPath;
    }

    public LocalDateTime getApiCallStart() {
        return ApiCallStart;
    }

    public void setApiCallStart(LocalDateTime ApiCallStart) {
        this.ApiCallStart = ApiCallStart;
    }

    public LocalDateTime getApiCallEnd() {
        return ApiCallEnd;
    }

    public void setApiCallEnd(LocalDateTime ApiCallEnd) {
        this.ApiCallEnd = ApiCallEnd;
    }

    public Integer getApiUseTime() {
        return ApiUseTime;
    }

    public void setApiUseTime(Integer ApiUseTime) {
        this.ApiUseTime = ApiUseTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.ApiCallId;
    }

    @Override
    public String toString() {
        return "ApiCallCensus{" +
        "ApiCallId=" + ApiCallId +
        ", ApiMethod=" + ApiMethod +
        ", ApiName=" + ApiName +
        ", ApiPath=" + ApiPath +
        ", ApiCallStart=" + ApiCallStart +
        ", ApiCallEnd=" + ApiCallEnd +
        ", ApiUseTime=" + ApiUseTime +
        "}";
    }
}
